//
//  StatusNomalCell.swift
//  JLWeibo
//
//  Created by sunjinliang on 15/12/13.
//  Copyright © 2015年 sunjinliang. All rights reserved.
//

import UIKit

class StatusNomalCell: StatusTableViewCell {

    override  var statusView: StatusViewModel? {
        didSet{
            pictureView.snp_updateConstraints { (make) -> Void in
                make.width.equalTo(pictureView.bounds.size.width)
                make.height.equalTo(pictureView.bounds.size.height)
                let offset = statusView?.thumbnailArray?.count>0 ? statusCellMargin : 0
                make.top.equalTo( contentLabel.snp_bottom).offset(offset)
                
            }
        }
    }
    override func setupUI() {
          super.setupUI()
        pictureView.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(contentLabel.snp_bottom).offset(statusCellMargin)
            make.left.equalTo(contentLabel.snp_left)
            make.width.equalTo(300)
            make.height.equalTo(90)
    }

}
}